package com.googlecode.imanager.swing;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.plaf.metal.MetalLabelUI;
import javax.swing.plaf.metal.MetalLookAndFeel;
import javax.swing.plaf.metal.MetalTextFieldUI;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class SwingPainter {

    public void paint(SwingControl control, Paintable target, Graphics g){
        g.setColor(Color.RED);
        g.fillRect(0, 0, 50, 15);
        target.superPaint(g);            
    }
    
    void test(){
        MetalTextFieldUI u;
        MetalLookAndFeel f;
        MetalLabelUI a;
    }
    
    public interface Paintable {
        
        void superPaint(Graphics g);
        
    }
}
